<div id="menu-user" class="border-radius bg-alpha">
    <?php if ($__session->isAuthenticated()): ?>
    <ul class="list-right">
        <li><a class="border-left" href="<?php link_to('user', 'deconnexion') ?>">Déconnexion</a></li>
        <?php if ($__session->hasCredential('admin_index')): ?><li><a class="border-left" href="<?php link_to('admin') ?>">Administration</a></li><?php endif; ?>
        <li><a href="<?php link_to('user', 'profil') ?>">Mon profil</a></li>
    </ul>
    <p class="no-indent">Connecté(e) en tant <?php echo apostrophe('que', $__session->getUser()->getName()) ?></p>
    <?php else: ?>
        <?php $formulaire->render() ?>
    <?php endif; ?>
</div>